/**
 * Created by Administrator on 2018/8/23 0023.
 */
import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import mutations from './mutations'
Vue.use(Vuex)
//最好使用try{}catch




export default new Vuex.Store({
  state,
  mutations,
  getters:{
    doubleCity (){
      return state.city +' '+state.city
    }
  }
  /*  actions:{
   changeCity(ctx,city){
   ctx.commit('changeCity',city)

   }
   },*/
})
